import Vue from 'vue'
import Router from 'vue-router'
import infraredCamera from '@/components/infraredCamera'
import historicalSetting from '@/components/historicalSetting'
import setdetails from '@/components/setdetails'
import cameraDistribution from '@/components/cameraDistribution'
import PhotoIdentification from '@/components/PhotoIdentification'
import history from '@/components/history'
import CardManagement from '@/components/CardManagement'
import statisticAnalysis from '@/components/statisticAnalysis'
import SpeciesStatistics from '@/components/SpeciesStatistics'
import identificationResult from '@/components/identificationResult'
import demo from '@/components/demo'
import nowadaysSetPlan from '@/components/nowadaysSetPlan' //当前布设计划
import historicaldetails from '@/components/historicaldetails' //当前布设计划
import authenticate from '@/components/authenticate' //照片鉴定
import transit from '@/components/transit' //照片鉴定
import SpeciesStatisticsdetail from '@/components/SpeciesStatisticsdetail'
import grouping from '@/components/grouping'
import idfrdetalis from '@/components/idfrdetalis'
import cddetails from '@/components/cddetails'
import realtimecameraDetail from '@/components/realtimecameraDetail'
import rlc from '@/components/realtimecamera.vue'
import realphoto from '@/components/realphoto.vue'
import realphotogroup from '@/components/realphotogroup.vue'
import classify from '@/components/classify.vue'
import classifyDetails from '@/components/classifyDetails.vue'
import Emptyphoto from '@/components/Emptyphoto.vue'
import Emptyphotoaut from '@/components/Emptyphotoaut.vue'
import realauthenticate from '@/components/realauthenticate.vue'
import calendar from '@/components/calendar.vue'
import BatchDeletion from '@/components/BatchDeletion.vue'
import jianDing from '@/components/jianDing.vue'

Vue.use(Router)

export default new Router({
  mode: "history",
  linkActiveClass: 'link-active',
  routes: [
    {path: '/', redirect: {name: 'transit'}},
    {
      path: "/transit",
      name: "transit",
      component: transit
    },
    {
      path: '/infraredCamera',
      name: 'infraredCamera',
      component: infraredCamera,
      //
      redirect: '/rlc',
      //   redirect: '/rlc/cameraDistribution',
      children: [
        {
          path: '/rlc',
          name: 'rlc',
          component: rlc
        },
        {
          path: '/rlc/jianDing',
          name: 'jianDing',
          component: jianDing
        },
        {
          path: '/rlc/realtimecameraDetail',
          name: 'realtimecameraDetail',
          component: realtimecameraDetail
        },
        {
          path: '/rlc/cameraDistribution',
          name: 'cameraDistribution',
          component: cameraDistribution
        },
        // realtimecameraDetail
        {
          path: '/rlc/cameraDistribution/cddetails',
          name: 'cddetails',
          component: cddetails
        },
        {
          path: '/cameraDistribution/nowadaysSetPlan',
          name: 'nowadaysSetPlan',
          component: nowadaysSetPlan
        },
        {
          path: '/historicalSetting',
          name: 'historicalSetting',
          component: historicalSetting,
          meta: {
            keepAlive: true
          }
        },
        {
          path: '/historicalSetting/setdetails',
          name: "setdetails",
          component: setdetails
        },
        {
          path: "/Photo/PhotoIdentification/grouping",
          name: "grouping",
          component: grouping
        },
        {
          path: "/Photo/PhotoIdentification",
          name: "PhotoIdentification",
          component: PhotoIdentification,
          meta: {
            keepAlive: true
          }
        },
        {
          path: "/Photo/PhotoIdentification/authenticate",
          name: "authenticate",
          component: authenticate
        },
        {
          path: "/Photo/realphoto",
          name: "realphoto",
          component: realphoto,
          meta: {
            keepAlive: true
          }
        },
        {
          path: "/Photo/realphoto/realphotogroup",
          name: "realphotogroup",
          component: realphotogroup
        },
        {
          path: "/Photo/classify",
          name: "classify",
          component: classify
        },
        {
          path: "/Photo/Emptyphoto",
          name: "Emptyphoto",
          component: Emptyphoto
        },
        {
          path: "/Photo/Emptyphoto/Emptyphotoaut",
          name: " Emptyphotoaut",
          component: Emptyphotoaut
        },
        {
          path: "/Photo/classify/classifyDetails",
          name: "classifyDetails",
          component: classifyDetails
        },
        {
          path: "/Photo/realphoto/realauthenticate",
          name: "realauthenticate",
          component: realauthenticate
        },
        {
          path: '/history',
          name: "history",
          component: history,
          meta: {
            keepAlive: true
          }
        },
        {
          path: "/history/historicaldetails",
          name: "historicaldetails",
          component: historicaldetails
        },
        {
          path: '/CardManagement',
          name: 'CardManagement',
          component: CardManagement
        },
        {
          path: "/SpeciesStatistics",
          name: 'SpeciesStatistics',
          component: SpeciesStatistics
        },
        {
          path: "/SpeciesStatistics/SpeciesStatisticsdetail",
          name: 'SpeciesStatisticsdetail',
          component: SpeciesStatisticsdetail
        },
        {
          path: '/statisticAnalysis',
          name: "statisticAnalysis",
          component: statisticAnalysis
        },
        {
          path: '/identificationResult',
          name: 'identificationResult',
          component: identificationResult,
          meta: {
            keepAlive: true
          }
        },
        {
          path: '/identificationResult/idfrdetalis',
          name: 'idfrdetalis',
          component: idfrdetalis,
        },
        {
          path: "/calendar",
          name: "calendar",
          component: calendar
        },
        {
          path: "/Photo/realphoto/BatchDeletion",
          name: "BatchDeletion",
          component: BatchDeletion
        },
        {
          path: '/demo',
          name: "demo",
          component: demo
        }
      ]
    },

  ]
})
